package com.andy.qi.conf;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix="account")
public class AccountConf {
    private String hallIp;
    private int hallClientPort;
    private String version;
    private String appWeb;
    private String accountPriKey;
    
    public String getHallIp() {
        return hallIp;
    }
    public void setHallIp(String hallIp) {
        this.hallIp = hallIp;
    }
    public int getHallClientPort() {
        return hallClientPort;
    }
    public void setHallClientPort(int hallClientPort) {
        this.hallClientPort = hallClientPort;
    }
    public String getVersion() {
        return version;
    }
    public void setVersion(String version) {
        this.version = version;
    }
    public String getAppWeb() {
        return appWeb;
    }
    public void setAppWeb(String appWeb) {
        this.appWeb = appWeb;
    }
    public String getAccountPriKey() {
        return accountPriKey;
    }
    public void setAccountPriKey(String accountPriKey) {
        this.accountPriKey = accountPriKey;
    }
    
    public String getHallAddr() {
        return hallIp  + ":" + hallClientPort;
    }
    
}
